package com.gx.security.base64;

import org.apache.commons.codec.binary.Base64;

import static com.gx.security.base64.Java.src;

/**
 * Created by gx on 2017/3/28.
 */
//cc实现
public class CommonCodes {

    public static void commonCodeBases(){
        byte [] encodeBase64 = Base64.encodeBase64(src.getBytes());
        System.out.println("encode:"+ new String(encodeBase64));
        byte [] decodeBase64 = Base64.decodeBase64(encodeBase64);
        System.out.println("decode:"+new String(decodeBase64));

    }
}
